<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
?><link rel="stylesheet" href="/static/css/push.css">
<div class="banner">
	<div class="container">
		<a href="">怎样发起众筹项目？</a>
		<span class="plus">+</span>
		<a href="">快速了解项目规范</a>
		<i class="fa fa-btc"></i>
	</div>
</div>
<div class="push-box">
	<div class="container">
		<div class="push-tit">
			<div class="push-step">
				交易步骤：
				<a href="<?php echo site_url('push_manage');?>">发布求购信息</a> 
				<i class="fa fa-arrow-right"></i>
				<a href="<?php echo site_url('push_manage');?>?flag=1">查看收到的PUSH</a> 
				<i class="fa fa-arrow-right"></i>
				确认接受后交易成功
			</div>
			<div class="push-ctl">
				<a href="<?php echo site_url('push_manage');?>">查看我发布的PUSH</a>
			</div>
			<div class="clear"></div>
		</div>
		<div class="coins">
			<a href="<?php echo site_url('push/index');?>?cid=0" 
<?php
if ($coin_id == 0) {
?>class="on"<?php
}

?>>全部</a>
			
<?php
foreach ($coins as $v) {
?>			<a href="<?php echo site_url('push/index');?>?cid=<?php echo $v['id'];?>" 
<?php
	if ($coin_id == $v['id']) {
?>class="on"<?php
	}

?>><?php echo $v['cn_name'];?></a>
			<?php
}

?>		</div>
		<div class="push-list">
			<table cellspacing=0 cellpadding=0 border=0>
				
<?php
foreach ($list as $v) {
?>				<tr>
					<td>
						
<?php
	if ($v['status'] == 0) {
?>进行中<?php
	}

?>						
<?php
	if ($v['status'] == 1) {
?>已完成<?php
	}

?>					</td>
					<td>
						<?php echo $v['coin']['cn_name'];?>						<p>发布时间：<?php echo date('Y-m-d H:i:s', $v['add_time']);?></p>
					</td>
					<td><?php echo $v['price'];?> / 个</td>
					<td>
						当前进度
						<div class="bar">
							<div class="bar-line" style="width:<?php echo $v['percent'];?>%;"></div>
						</div>
						<span><?php echo $v['percent'];?>%</span>
					</td>
					<td><a href="javascript:void(0);" push="<?php echo $v['id'];?>">PUSH</a></td>
				</tr>
				<?php
}

?>			</table>
			<div class="page">
			  <?php echo $page;?>			</div>
			
<?php
if (!$list) {
?>			<div class="not-list">
				<i class="fa fa-ban"></i>
				<span><?php echo lang('user_not_list');?></span>
			</div>
			<?php
}

?>		</div>
	</div>
</div>
<script>
$(function(){
	$('[push]').click(function(){
		$('[push]').winParam('<?php echo site_url('push/form');?>?id='+$(this).attr('push'),'550','353','PUSH');
	});
	
});
</script>